﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="TaoBaoApi_TB_DownBaobei2" Codebehind="TB_DownBaobei2.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>下载宝贝</title>
</head>
<body>
    <form id="form1" runat="server">
    <div align="justify">
        <h2>下载淘宝宝贝</h2>
        <div class="juli">
            <table>
                <tr>
                    <td>
                        <asp:GridView ID="gvList" runat="server" AutoGenerateColumns="False" Width="100%" CellPadding="4" ForeColor="#333333" GridLines="None">
                            <Columns>
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        <asp:CheckBox ID="chkAll" runat="Server" Checked="true" Enabled="false" />
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chkOne" runat="Server" Checked="true" Enabled="false" />
                                    </ItemTemplate> 
                                </asp:TemplateField>
                                <asp:BoundField DataField="iid" HeaderText="宝贝编号" />
                                <asp:BoundField DataField="title" HeaderText="宝贝名称" />
                                 <asp:BoundField DataField="price" HeaderText="价格" />
                                 <asp:TemplateField>
                                    <HeaderTemplate>是否橱窗推荐</HeaderTemplate> 
                                    <ItemTemplate>
                                        <%# GetShowCase( Eval("has_showcase")) %>
                                    </ItemTemplate>
                                 </asp:TemplateField> 
                                 <asp:TemplateField>
                                    <HeaderTemplate>宝贝分类</HeaderTemplate> 
                                    <ItemTemplate>
                                        <%# GetCidName( Eval("cid")) %>
                                    </ItemTemplate>
                                 </asp:TemplateField> 
                            </Columns>
                            <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                            <RowStyle BackColor="#E3EAEB" />
                            <EditRowStyle BackColor="#7C6F57" />
                            <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                            <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                            <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" />
                        </asp:GridView> 
                       <asp:TextBox ID="txtUser" runat="Server" Visible="False" />
                       <asp:TextBox ID="txtpass" runat="server" Visible="False" />
                       <asp:TextBox ID="txtSession" runat="Server" Visible="False" /> 
                        <asp:Literal ID="ltInfo" runat="Server" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2">待下载的宝贝总数为：<asp:Label ID="lbCount" runat="server" Font-Bold="True" /></td>
                </tr>
                <tr>
                    <td><asp:Button ID="btnDown" runat="Server" Text="下载" OnClick="btnDown_Click" Height="34px" Width="96px" />
                                <asp:TextBox ID="txtParam" runat="server" Visible="false" /> 
                    </td>
                </tr>
            </table>
        </div> 
    </div>
    </form>
</body>
</html>
